function hello(str:string) {
    console.log(str + ": 加载.");
    return function (target: object, propertyKey: string, descriptor: PropertyDescriptor) {
        console.log("hello(): 执行.");
        console.log(target)
    }
}

function world() {
    console.log("world(): 加载.");
    return function (target: object, propertyKey: string, descriptor: PropertyDescriptor) {
        console.log("world(): 执行.");
    }
}


class Main {

    @hello('method')    
    @world()
    method() {
        console.log('method(): 执行.');
    }
}


let main = new Main()
main.method()